#ifdef INET6
#define AFINET AF_INET6
#define SOCKADDR_IN sockaddr_in6
#define INETADDRSTRLEN INET6_ADDRSTRLEN
#define sin_addr sin6_addr
#define sin_port sin6_port
#define sin_family sin6_family
#else
#define AFINET AF_INET
#define INETADDRSTRLEN INET_ADDRSTRLEN
#define SOCKADDR_IN sockaddr_in
#endif

